package cn.elwy.rcp.core.model.ui.progress;

import java.lang.reflect.InvocationTargetException;

import org.eclipse.core.runtime.IProgressMonitor;

/**
 * 适配器方法抽象类
 * 
 * @author huangsq
 * @version 1.0, 2013-11-20
 * @since 1.0, 2013-11-20
 */
public abstract class RunnableAdapter {

  private Object data;

  /** 定义接口方法适配器 */
  public abstract void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException;

  public Object getData() {
    return data;
  }

  public void setData(Object data) {
    this.data = data;
  }

}